import request from '@/axios/index';

// axios.get('/endpoint').then((data) => {
//     console.log(data);
// });
export function sendLoginSmsCode(data) {
    return request({
        url: '/endpoint',
        method: 'post',
        data
    })
}
// export function queryPageMsg(data) {
//     return request({
//         url: '/eims/BPai/V2/queryPageMsg',
//         method: 'post',
//         data
//     })
// }



export function saveMsg(data) {
    return request({
        url: '/eims/BPai/V2/saveMsg',
        method: 'post',
        data
    })
}
export function cancelChat(data) {
    return request({
        url: '/eims/BPai/V2/chat/cancel',
        method: 'post',
        data
    })
}
export function addHisChat(data) {
    return request({
        url: '/eims/BPai/V2/addHisChat',
        method: 'post',
        data
    })
}
export function StartVoiceChat(data) {
    return request({
        url: `/proxyAIGCFetch?Name=start&Action=StartVoiceChat&Version=2024-06-01`,
        method: 'post',
        data
    })
}
export function StopVoiceChat(data) {
    return request({
        url: `/proxyAIGCFetch?Name=start&Action=StopVoiceChat&Version=2024-06-01`,
        method: 'post',
        data
    })
}
export function UpdateVoiceChat(data) {
    return request({
        url: `/proxyAIGCFetch?Name=start&Action=UpdateVoiceChat&Version=2024-06-01`,
        method: 'post',
        data
    })
}

export default { 
    StartVoiceChat,
    StopVoiceChat,
    UpdateVoiceChat,
}
